package com.zxl.grocery.microservice.eurekacenter;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;

/**
 * 遇到的坑：如果该启动类的名字为：EurekaServerBootstrap 则报：Field eurekaServerBootstrap in org.springframework.cloud.netflix.eureka.server.EurekaServerInitializerConfiguration required a bean of type 'org.springframework.cloud.netflix.eureka.server.EurekaServerBootstrap' that could not be found. 原因：类同名
 * @Author: zxl
 * @Description: eureka注册中心
 * @Date: Created in 16:16 2017/10/12
 * @Modified By:
 */
@SpringBootApplication
@EnableEurekaServer  //启动一个服务注册中心提供给其他应用进行对话
public class EurekaBootstrap {
    public static void main(String[] args) {
        SpringApplication.run(EurekaBootstrap.class,args);
    }
}
